package com.dmm.user.service.impl;

import com.dmm.user.entity.Summary;
import com.dmm.user.mapper.SummaryMapper;
import com.dmm.user.service.SummaryService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author com/dmm
 * @since 2023-04-13
 */
@Service
public class SummaryServiceImpl extends ServiceImpl<SummaryMapper, Summary> implements SummaryService {


    @Resource
    SummaryMapper summaryMapper;
    //根据邮箱查询最新的报告
    @Override
    public Summary getcandidate(String email) {

        Summary summary=summaryMapper.getcandidate(email);
        return summary;
    }
}
